#pragma once
#include <cocos2d.h>

USING_NS_CC;

class ItemFactory;

class ItemBank : public CCObject
{
public:
	ItemBank(void);
	~ItemBank(void);

	void initBank();
	void clearBank();
	ItemFactory* getItemFactory(char* type);

	CC_SYNTHESIZE_RETAIN(CCDictionary*, _listItemFactory, ItemFactories);

	static ItemBank* _instance;
	static ItemBank* sharedItemBank();
};

